<template>
  <div id="app">
    <keep-alive>
      <router-view/>
    </keep-alive>
      <footerGuide v-if="$route.meta.showFooter"></footerGuide>
  </div>
</template>
<script>
import { mapActions } from 'vuex'
import FooterGuide from '@/components/FooterGuide/FooterGuide'
export default {
  async mounted () {
    // this.$store.dispatch('getAddress')
    this.getAddress()
    this.getCategorys()
    this.getUserInfo()
  },
  methods: {
    ...mapActions(['getAddress', 'getCategorys', 'getUserInfo'])
  },
  components: {
    // eslint-disable-next-line vue/no-unused-components
    footerGuide: FooterGuide
  }
}
</script>
<style lang="less">

</style>
